package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysFile;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteTeachingService", value = ServiceNameConstants.TEACHING_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteTeachingService
{
    /**
     * 定时任务自动创建每日任务
     * @return
     */
    @PostMapping("/daily_tasks/quartz")
    R<Boolean> createDailyTask(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
